home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 July
/
EnigmA AMIGA RUN 20 (1997)(G.R. Edizioni)(IT)[!][issue 1997-07 & 08][EAR-CD IV].iso
/
earcd
/
biz
/
patch
/
xdve270i.lha
/
x-dve.lha
/
Utils
/
XFAPlay.DOC
< prev
next >
Wrap
Text File
|
1996-07-22
|
8KB
|
197 lines
******************************************************************************
* *
* eXtra Fast Animation Shell/WB/ARexx Player *
* *
* © ClassX Development 1996, all rights reserved *
* *
* ClassX Via Francesca 463 I - 56030 Montecalvoli (PI) *
* Tel+Fax +39 587 749206 *
* *
******************************************************************************
** Introduction
XFAPlay has been developed to give users an efficient XFA player.
It is freely distributable for NON-COMMERCIAL purposes and it is subject
to the ShareWare rules.
** Technical characteristics
XFAPlay allows to load and play XFA animations from memory or disk and can
be used under three different operating environments: Shell (CLI), Workbench
or ARexx.
To keep user interface as consistent as possible, the available commands
have the same mnemonical syntax in all of the three environments.
XFAPlay uses xfa.library (© ClassX 1995) and it is small (less than 60Kb),
leaving room for animations.
XFAPlay is able to play animations with an "AutoPause" facility.
When playing animations with autopause on, XFAPlay will automatically freeze
the animation in correspondence of frames without moving objects, waiting
for a mouseclick to continue.
******************************************************************************
** Using XFAPlay from SHELL **
******************************************************************************
It is supposed a minimal knowledge of the operational modality of AmigaDos
for the best use of XFAPlay.
******************************************************************************
If launched through a SHELL, XFAPlay behaves like a normal AmigaDos command.
Starting it without arguments, it shows its version and usage prototype.
ex:
> XFAPlay
XFAPlay v1.01 (c) ClassX 24-5-1996
Usage: XFAPlay <filename> [Loop|AutoPause|NoWait|WBModeID]
where:
<filename> is the full pathname of the animation to be played (needed).
[Loop] switch: enables the infinite-loop mode.
[AutoPause] switch: enables the automatic pauses facility.
[NoWait] switch: disables the wait-for-mouse at the start/end of the
animation.
[WbModeId] switch: forces XFAPlay to use a screen compatible with workbench
(useful to play XFA animations on Amigas without a PAL monitor).
Each modifier (keyword between square brackets) is optional and enables
the related function only if present in XFAPlay call.
If no modifier is specified, the default play condition will be:
No Loop, No AutoPause, Wait, No WbModeID.
Modifiers are not case sensitive.
usage example:
> XFAPlay dh1:x-dve/xfa/prova.xfa LOOP WBMODEID
Will execute "prova.xfa" animation in LOOP mode, on a WB-compatible screen.
Wanting to create a simple script that loads and executes a set of animations,
it is sufficient to build a small file (with ED) that contains a list of
XFAPlay commands.
For example:
(start ED from a shell)
>ED show
(type the commands you need to show animations)
XFAPlay dh1:x-dve/xfa/intro.xfa NOWAIT
XFAPlay dh1:x-dve/xfa/headtitles.xfa NOWAIT
XFAPlay dh1:x-dve/xfa/marriage.xfa NOWAIT
XFAPlay dh1:x-dve/xfa/endtitles.xfa NOWAIT
(press ESC, x, to save the script)
(now, execute the script)
> Execute show
Here we are: XFAPlay is showing your animations.
******************************************************************************
** Using XFAPlay from Workbench **
******************************************************************************
If XFAPlay is started from Workbench (doubleclicking on its icon), it shows
its intuition interface on the screen.
As you can see, there are a few buttons, meaning it will be not so much
difficult to manage.
The first thing to do to load and play an animation is to select its name
with the "Src" (source) button.
Once the animation is selected, its name will appear in the "Src" field, but
nothing will be loaded in memory (it is possible to play it only from disk).
XFAPlay is clever enough to enable and disable its buttons if there is or
not an animation in memory, reducing the possibility to make mistakes.
The "Play Disk" function has been introduced to easily preview animations
without having to load them in memory.
Playing animations from disk, is very cheap in terms of memory consumption
and allows to see a long animation even on Amigas without memory to load it
in full.
Besides, playing from disk is accurate and smooth enough to allow an effective
use of this feature (but sometimes 32BitI and 16BitI animation could "jump",
expecially on slow machines with slow disks).
After loading the animation in memory with "Load XFA", "Play Mem" button
becomes active and it is sufficient to click it to see the animation.
Even the "?" button is now active, allowing to get some informations on the
animation currently in memory.
CheckBoxes in XFAPlay window (if enabled) act as follows:
[Loop] switch: enables the infinite-loop mode.
[AutoPause] switch: enables the automatic pauses facility.
[NoWait] switch: disables the wait-for-mouse at the start/end of the
animation.
[WbModeId] switch: forces XFAPlay to use a screen compatible with workbench
(useful to play XFA animations on Amigas without a PAL monitor).
[Slow] switch: forces XFAPlay execute the animation at half speed
(only playing the animation from memory).
They are used completely when playing the animation from memory; only WBModeID
modifyer is managed by disk play facility.
The "Free" button frees the memory occupied by the animation, making possible
to play it again from disk.
We remember that it is possible to stop the play from disk keeping both
mousebuttons pressed until it stops.
******************************************************************************
** Using XFAPlay from ARexx **
******************************************************************************
As already mentioned, XFAPlay has a ARexx interface that allows to control
and play XFA animations from other ARexx-compatible programs.
The ARexx port name of XFAPlay is "XFAPlay" (case sensitive) and supports
the following commands (must be UPPERCASE):
XFA_REQSRC <s> ;Opens a FileRequester and presets is to the <s> path.
XFA_SOURCE <s> ;Sets the "Src" field of XFAPlay with the <s> path.
XFA_LOAD ;Loads the "Src" animation in memory.
XFA_FREE ;Frees the memory occupied by the animation.
XFA_PLAYMEM ;Plays the animation in memory (if present).
XFA_PLAYDISK ;Plays the "Src" animation from disk (if present).
XFA_LOOP <ON|OFF> ;Sets/Resets the infinite-loop playmode.
XFA_AUTOPAUSE <ON|OFF> ;Sets/Resets the autopause playmode.
XFA_NOWAIT <ON|OFF> ;Sets/Resets the nowait playmode.
XFA_WBMODEID <ON|OFF> ;Sets/Resets the wbmodeid playmode.
XFA_SLOW <ON|OFF> ;Sets/Resets the slow playmode.
XFAPlay window gadgets will reflect the current status of the settings and
the commands sent by any ARexx script.
Eample of an ARexx script:
/* play from memory */
options results
address 'XFAPlay'
XFA_SOURCE "DK3:XFA/ClassX.XFA"
XFA_LOAD
XFA_AUTOPAUSE OFF
XFA_LOOP OFF
XFA_PLAYMEM
XFA_FREE
exit
/* end script */
Or:
/* play from disk */
options results
address 'XFAPlay'
XFA_SOURCE "DK3:XFA/ClassX.XFA"
XFA_PLAYDISK
exit
/* end script */
Remember that XFAPlay ARexx interface can only work if:
- RexxMast ARexx server is up and running before starting the application.
A requester will warn you if RexxMast is not present in memory.
- XFAPlay has been started from WorkBench.
******************************************************************************